layui.use(['element'], function(){
    var element = layui.element,layer = layui.layer;

    adapter();

    $(document).click(function(){
        $('.nav-list').removeClass('open')
    })
    $('.nav-menu,.nav-list').click(function(e){
        e.stopPropagation()})
    $('nav').find('.nav-menu').click(function(e){
        $('.nav-list').toggleClass('open')
    })

    $("#searchIcon").click(function () {
        $(".site-search").toggleClass("searchDiv");
    })

});

$(function () {
})


window.onresize = function (ev) {
    adapter();
}

function adapter() {
    var width = document.body.clientWidth;
    if(width < 768){
        $("#labelTitle").css("display","none");
    }else{
        $("#labelTitle").css("display","");
    }

}



